package cn.lds.j367.dsbank.service.impl;

import cn.lds.j367.dsbank.common.dto.ResultDTO;
import cn.lds.j367.dsbank.entity.Role;
import cn.lds.j367.dsbank.mapper.RoleMapper;
import cn.lds.j367.dsbank.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public ResultDTO<List<Role>> selectRoleAll() {

        return ResultDTO.buildSuccess(roleMapper.selectRoleAll());
    }
}
